package cn.virens.web.components.open.oauth;

import me.zhyd.oauth.model.AuthCallback;
import me.zhyd.oauth.model.AuthResponse;
import me.zhyd.oauth.model.AuthUser;
import me.zhyd.oauth.request.AuthRequest;

public interface Oauth2Service {

	String getType();

	boolean switchover(String type);

	AuthRequest request();

	void removeAuthRequest(String type);

	void addAuthRequest(String type, AuthRequest request);

	String authorize(String state);

	AuthResponse<AuthUser> loign(AuthCallback authCallback);

}
